﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCoreTest
{
    public class PagePara
    {
        public int PageIndex { get; set; }
        public int PageSize { get; set; }
    }
    public class PageData<T>: PagePara
    {
        public int Count { get; set; }
        public int PageCount { get => Convert.ToInt32(Math.Ceiling(Count/(double)PageSize));}
        public List<T> ListData { get; set; }

    }
}
